package org.dna.wickwtui.test;

import java.io.Serializable;

/**
 * name is the wrapped object that could be your business object.
 * the selected property is just here to record whether the checkbox for
 * it was selected.
 */
class NameWrapper implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -6704312003669144484L;
    private String name;
    private Boolean selected = Boolean.FALSE;

    public NameWrapper(String wrapped) {
        this.name = wrapped;
    }

    public Boolean getSelected() {
        return selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected;
    }

    public String getName() {
        return name;
    }

    public void setName(String wrapped) {
        this.name = wrapped;
    }

    public String toString() {
        return name + ": " + selected;
    }
}
